package my.headfirstjava.strategy.v2;

/**
 * 模型鸭
 * 特点:会游泳，不会叫
 */
public class ModelDuck extends Duck implements Flayable,Quackable {


	public void display() {
		System.out.println("I'm a model duck");
	}

	@Override
	public void flay() {
		System.out.println("我不会飞");
	}

	@Override
	public void quack() {
		System.out.println("我会叫");

	}
}
